
package Double;

public class compareTo {
public static void main(String[] args) {
 Double x=new Double(45.3);Double y=new Double(45.3);
         System.out.println("compare(): \nCompara dos objetos.\nResultado del ejemplo: "+x.compareTo(y));
  
    }
}
